import {MyHttp} from '../../services/myHttp/myhttp.service';
import { Injectable}  from '@angular/core';
import { Observable} from 'rxjs/Observable';
@Injectable()
export class SigninService{
  constructor(private http:MyHttp){

  }
  signIn(username:string,password:string):Observable<any>{
    let data={
      username:username,
      password:password
    };
    return this.http.post({
      api:this.http.api.login,
      body:data
    })
  }
}
